package com.nwpu.coursesupport.service.param;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.nwpu.coursesupport.criteria.LessonSearchCriteria;
import com.nwpu.coursesupport.entity.Lesson;
import com.nwpu.coursesupport.enumeration.LessonType;

public class LessonServiceParam{
	
    public static class CreateParam{
		private LessonType type;
		private Integer classId;
		@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
		private Date beginDate;
		@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
		private Date endDate;
		private String location;
		
		public LessonType getType() {
			return type;
		}
		public void setType(LessonType type) {
			this.type = type;
		}
		public Integer getClassId() {
			return classId;
		}
		public void setClassId(Integer classId) {
			this.classId = classId;
		}
		public Date getBeginDate() {
			return beginDate;
		}
		public void setBeginDate(Date beginDate) {
			this.beginDate = beginDate;
		}
		public Date getEndDate() {
			return endDate;
		}
		public void setEndDate(Date endDate) {
			this.endDate = endDate;
		}
		public String getLocation() {
			return location;
		}
		public void setLocation(String location) {
			this.location = location;
		}
		
    }
    
    public static class UpdateParam extends Lesson{
        
    }
    
    public static class SearchParam{
        private LessonSearchCriteria search;
        private int pageNo;
        private String keyword;
        public LessonSearchCriteria getSearch() {
            return search;
        }
        public void setSearch(LessonSearchCriteria search) {
            this.search = search;
        }
        public int getPageNo() {
            return pageNo;
        }
        public void setPageNo(int pageNo) {
            this.pageNo = pageNo;
        }
        public String getKeyword() {
            return keyword;
        }
        public void setKeyword(String keyword) {
            this.keyword = keyword;
        }
    }
}
